package com.xiaobai.design_pattern.strategy;

import lombok.AllArgsConstructor;

/**
 * @author wangtw
 * @ClassName NoDiscountStrategy
 * @description: 没有折扣额（具体策略角色）
 * @date 2023/6/418:24
 */
public class NoDiscountStrategy extends DiscountStrategy{
    // 构造方法
    public NoDiscountStrategy(double price, int number) {
        super(price, number);
    }

    /**
     * 具体策略方法，0折扣额
     * @return
     */
    @Override
    public double calculateDiscount() {
        return 0;
    }
}
